package com.hxzy.common.annon;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.hxzy.common.enums.SensitiveEnum;

import java.lang.annotation.*;

/**
 * 数据脱敏注解(日志专用+fastjson)
 */
@Target(value = ElementType.FIELD)
@Retention(value = RetentionPolicy.RUNTIME)
@Documented
@JacksonAnnotationsInside
public @interface LogSensitive {

    /**
     * 数据脱敏的类型
     * @return
     */
    SensitiveEnum  type();
}
